import { Entity, CreateDate, UpdateDate, Title, PrimaryKey, Code } from '@sker/core'
@Entity({ name: 'sys_resource' })
export class SysResource {
    static title: string = `资源表`;
    static resource: string = `sys_resource`;

    @PrimaryKey({ comment: '资源', primaryKeyConstraintName: 'PK_SYS_RESOURCE_ID' })
    resource!: string;

    @Title({ comment: '资源名' })
    title!: string;

    @Code({ comment: '类型' })
    layout: string;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}